﻿#region Using directives

using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;

using NetROS.Tiers.Entities;
using NetROS.Tiers.Data;

#endregion

namespace NetROS.Tiers.Data.Bases
{	
	///<summary>
	/// This class is the base class for any <see cref="ArtiklProviderBase"/> implementation.
	/// It exposes CRUD methods as well as selecting on index, foreign keys and custom stored procedures.
	///</summary>
	public abstract partial class ArtiklProviderBaseCore : EntityProviderBase<NetROS.Tiers.Entities.Artikl, NetROS.Tiers.Entities.ArtiklKey>
	{		
		#region Get from Many To Many Relationship Functions
		#endregion	
		
		#region Delete Methods

		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to delete.</param>
		/// <returns>Returns true if operation suceeded.</returns>
		public override bool Delete(TransactionManager transactionManager, NetROS.Tiers.Entities.ArtiklKey key)
		{
			return Delete(transactionManager, key.ID);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public bool Delete(System.Int32 iD)
		{
			return Delete(null, iD);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public abstract bool Delete(TransactionManager transactionManager, System.Int32 iD);		
		
		#endregion Delete Methods
		
		#region Get By Foreign Key Functions
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblArtiklMjera key.
		///		FK_tblArtikl_tblArtiklMjera Description: 
		/// </summary>
		/// <param name="iDJedinicnaMjera"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDJedinicnaMjera(System.Int32 iDJedinicnaMjera)
		{
			int count = -1;
			return GetByIDJedinicnaMjera(iDJedinicnaMjera, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblArtiklMjera key.
		///		FK_tblArtikl_tblArtiklMjera Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDJedinicnaMjera"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDJedinicnaMjera(TransactionManager transactionManager, System.Int32 iDJedinicnaMjera)
		{
			int count = -1;
			return GetByIDJedinicnaMjera(transactionManager, iDJedinicnaMjera, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblArtiklMjera key.
		///		FK_tblArtikl_tblArtiklMjera Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDJedinicnaMjera"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDJedinicnaMjera(TransactionManager transactionManager, System.Int32 iDJedinicnaMjera, int start, int pageLength)
		{
			int count = -1;
			return GetByIDJedinicnaMjera(transactionManager, iDJedinicnaMjera, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblArtiklMjera key.
		///		fK_tblArtikl_tblArtiklMjera Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDJedinicnaMjera"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDJedinicnaMjera(System.Int32 iDJedinicnaMjera, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDJedinicnaMjera(null, iDJedinicnaMjera, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblArtiklMjera key.
		///		fK_tblArtikl_tblArtiklMjera Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDJedinicnaMjera"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDJedinicnaMjera(System.Int32 iDJedinicnaMjera, int start, int pageLength,out int count)
		{
			return GetByIDJedinicnaMjera(null, iDJedinicnaMjera, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblArtiklMjera key.
		///		FK_tblArtikl_tblArtiklMjera Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDJedinicnaMjera"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByIDJedinicnaMjera(TransactionManager transactionManager, System.Int32 iDJedinicnaMjera, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblKlijent key.
		///		FK_tblArtikl_tblKlijent Description: 
		/// </summary>
		/// <param name="iDProizvodac"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDProizvodac(System.Int32? iDProizvodac)
		{
			int count = -1;
			return GetByIDProizvodac(iDProizvodac, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblKlijent key.
		///		FK_tblArtikl_tblKlijent Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDProizvodac"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDProizvodac(TransactionManager transactionManager, System.Int32? iDProizvodac)
		{
			int count = -1;
			return GetByIDProizvodac(transactionManager, iDProizvodac, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblKlijent key.
		///		FK_tblArtikl_tblKlijent Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDProizvodac"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDProizvodac(TransactionManager transactionManager, System.Int32? iDProizvodac, int start, int pageLength)
		{
			int count = -1;
			return GetByIDProizvodac(transactionManager, iDProizvodac, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblKlijent key.
		///		fK_tblArtikl_tblKlijent Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDProizvodac"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDProizvodac(System.Int32? iDProizvodac, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDProizvodac(null, iDProizvodac, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblKlijent key.
		///		fK_tblArtikl_tblKlijent Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDProizvodac"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDProizvodac(System.Int32? iDProizvodac, int start, int pageLength,out int count)
		{
			return GetByIDProizvodac(null, iDProizvodac, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblKlijent key.
		///		FK_tblArtikl_tblKlijent Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDProizvodac"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByIDProizvodac(TransactionManager transactionManager, System.Int32? iDProizvodac, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblPorez key.
		///		FK_tblArtikl_tblPorez Description: 
		/// </summary>
		/// <param name="iDPorez"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDPorez(System.Int32 iDPorez)
		{
			int count = -1;
			return GetByIDPorez(iDPorez, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblPorez key.
		///		FK_tblArtikl_tblPorez Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDPorez"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDPorez(TransactionManager transactionManager, System.Int32 iDPorez)
		{
			int count = -1;
			return GetByIDPorez(transactionManager, iDPorez, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblPorez key.
		///		FK_tblArtikl_tblPorez Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDPorez"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDPorez(TransactionManager transactionManager, System.Int32 iDPorez, int start, int pageLength)
		{
			int count = -1;
			return GetByIDPorez(transactionManager, iDPorez, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblPorez key.
		///		fK_tblArtikl_tblPorez Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDPorez"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDPorez(System.Int32 iDPorez, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDPorez(null, iDPorez, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblPorez key.
		///		fK_tblArtikl_tblPorez Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDPorez"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDPorez(System.Int32 iDPorez, int start, int pageLength,out int count)
		{
			return GetByIDPorez(null, iDPorez, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblArtikl_tblPorez key.
		///		FK_tblArtikl_tblPorez Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDPorez"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Artikl objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByIDPorez(TransactionManager transactionManager, System.Int32 iDPorez, int start, int pageLength, out int count);
		
		#endregion

		#region Get By Index Functions
		
		/// <summary>
		/// 	Gets a row from the DataSource based on its primary key.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to retrieve.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <returns>Returns an instance of the Entity class.</returns>
		public override NetROS.Tiers.Entities.Artikl Get(TransactionManager transactionManager, NetROS.Tiers.Entities.ArtiklKey key, int start, int pageLength)
		{
			return GetByID(transactionManager, key.ID, start, pageLength);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblArtikl_5_2117894912__K1_K11_2_3_4_7_8_9_10 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDUsluga(System.Int32 iD, System.Int32 usluga)
		{
			int count = -1;
			return GetByIDUsluga(null,iD, usluga, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_5_2117894912__K1_K11_2_3_4_7_8_9_10 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDUsluga(System.Int32 iD, System.Int32 usluga, int start, int pageLength)
		{
			int count = -1;
			return GetByIDUsluga(null, iD, usluga, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_5_2117894912__K1_K11_2_3_4_7_8_9_10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDUsluga(TransactionManager transactionManager, System.Int32 iD, System.Int32 usluga)
		{
			int count = -1;
			return GetByIDUsluga(transactionManager, iD, usluga, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_5_2117894912__K1_K11_2_3_4_7_8_9_10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDUsluga(TransactionManager transactionManager, System.Int32 iD, System.Int32 usluga, int start, int pageLength)
		{
			int count = -1;
			return GetByIDUsluga(transactionManager, iD, usluga, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_5_2117894912__K1_K11_2_3_4_7_8_9_10 index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDUsluga(System.Int32 iD, System.Int32 usluga, int start, int pageLength, out int count)
		{
			return GetByIDUsluga(null, iD, usluga, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_5_2117894912__K1_K11_2_3_4_7_8_9_10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByIDUsluga(TransactionManager transactionManager, System.Int32 iD, System.Int32 usluga, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblArtikl_5_2117894912__K11 index.
		/// </summary>
		/// <param name="usluga"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUsluga(System.Int32 usluga)
		{
			int count = -1;
			return GetByUsluga(null,usluga, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_5_2117894912__K11 index.
		/// </summary>
		/// <param name="usluga"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUsluga(System.Int32 usluga, int start, int pageLength)
		{
			int count = -1;
			return GetByUsluga(null, usluga, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_5_2117894912__K11 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="usluga"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUsluga(TransactionManager transactionManager, System.Int32 usluga)
		{
			int count = -1;
			return GetByUsluga(transactionManager, usluga, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_5_2117894912__K11 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="usluga"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUsluga(TransactionManager transactionManager, System.Int32 usluga, int start, int pageLength)
		{
			int count = -1;
			return GetByUsluga(transactionManager, usluga, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_5_2117894912__K11 index.
		/// </summary>
		/// <param name="usluga"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUsluga(System.Int32 usluga, int start, int pageLength, out int count)
		{
			return GetByUsluga(null, usluga, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_5_2117894912__K11 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="usluga"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByUsluga(TransactionManager transactionManager, System.Int32 usluga, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblArtikl_8_2117894912__K10_K11_K1_2 index.
		/// </summary>
		/// <param name="iDPorez"></param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDPorezUslugaID(System.Int32 iDPorez, System.Int32 usluga, System.Int32 iD)
		{
			int count = -1;
			return GetByIDPorezUslugaID(null,iDPorez, usluga, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_8_2117894912__K10_K11_K1_2 index.
		/// </summary>
		/// <param name="iDPorez"></param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDPorezUslugaID(System.Int32 iDPorez, System.Int32 usluga, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByIDPorezUslugaID(null, iDPorez, usluga, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_8_2117894912__K10_K11_K1_2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDPorez"></param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDPorezUslugaID(TransactionManager transactionManager, System.Int32 iDPorez, System.Int32 usluga, System.Int32 iD)
		{
			int count = -1;
			return GetByIDPorezUslugaID(transactionManager, iDPorez, usluga, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_8_2117894912__K10_K11_K1_2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDPorez"></param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDPorezUslugaID(TransactionManager transactionManager, System.Int32 iDPorez, System.Int32 usluga, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByIDPorezUslugaID(transactionManager, iDPorez, usluga, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_8_2117894912__K10_K11_K1_2 index.
		/// </summary>
		/// <param name="iDPorez"></param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDPorezUslugaID(System.Int32 iDPorez, System.Int32 usluga, System.Int32 iD, int start, int pageLength, out int count)
		{
			return GetByIDPorezUslugaID(null, iDPorez, usluga, iD, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_8_2117894912__K10_K11_K1_2 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDPorez"></param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByIDPorezUslugaID(TransactionManager transactionManager, System.Int32 iDPorez, System.Int32 usluga, System.Int32 iD, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblArtikl_8_2117894912__K11_K1_K10 index.
		/// </summary>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="iDPorez"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUslugaIDIDPorez(System.Int32 usluga, System.Int32 iD, System.Int32 iDPorez)
		{
			int count = -1;
			return GetByUslugaIDIDPorez(null,usluga, iD, iDPorez, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_8_2117894912__K11_K1_K10 index.
		/// </summary>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="iDPorez"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUslugaIDIDPorez(System.Int32 usluga, System.Int32 iD, System.Int32 iDPorez, int start, int pageLength)
		{
			int count = -1;
			return GetByUslugaIDIDPorez(null, usluga, iD, iDPorez, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_8_2117894912__K11_K1_K10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="iDPorez"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUslugaIDIDPorez(TransactionManager transactionManager, System.Int32 usluga, System.Int32 iD, System.Int32 iDPorez)
		{
			int count = -1;
			return GetByUslugaIDIDPorez(transactionManager, usluga, iD, iDPorez, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_8_2117894912__K11_K1_K10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="iDPorez"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUslugaIDIDPorez(TransactionManager transactionManager, System.Int32 usluga, System.Int32 iD, System.Int32 iDPorez, int start, int pageLength)
		{
			int count = -1;
			return GetByUslugaIDIDPorez(transactionManager, usluga, iD, iDPorez, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_8_2117894912__K11_K1_K10 index.
		/// </summary>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="iDPorez"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUslugaIDIDPorez(System.Int32 usluga, System.Int32 iD, System.Int32 iDPorez, int start, int pageLength, out int count)
		{
			return GetByUslugaIDIDPorez(null, usluga, iD, iDPorez, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_8_2117894912__K11_K1_K10 index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="iDPorez"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByUslugaIDIDPorez(TransactionManager transactionManager, System.Int32 usluga, System.Int32 iD, System.Int32 iDPorez, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblArtikl_9_2117894912__K11_K1_Lager index.
		/// </summary>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUslugaID(System.Int32 usluga, System.Int32 iD)
		{
			int count = -1;
			return GetByUslugaID(null,usluga, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_9_2117894912__K11_K1_Lager index.
		/// </summary>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUslugaID(System.Int32 usluga, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByUslugaID(null, usluga, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_9_2117894912__K11_K1_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUslugaID(TransactionManager transactionManager, System.Int32 usluga, System.Int32 iD)
		{
			int count = -1;
			return GetByUslugaID(transactionManager, usluga, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_9_2117894912__K11_K1_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUslugaID(TransactionManager transactionManager, System.Int32 usluga, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByUslugaID(transactionManager, usluga, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_9_2117894912__K11_K1_Lager index.
		/// </summary>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByUslugaID(System.Int32 usluga, System.Int32 iD, int start, int pageLength, out int count)
		{
			return GetByUslugaID(null, usluga, iD, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_9_2117894912__K11_K1_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="usluga"></param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByUslugaID(TransactionManager transactionManager, System.Int32 usluga, System.Int32 iD, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key _dta_index_tblArtikl_9_2117894912__K9_K1_K11_K2_4_Lager index.
		/// </summary>
		/// <param name="iDArtiklKategorija"></param>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <param name="naziv"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorijaIDUslugaNaziv(System.Int32 iDArtiklKategorija, System.Int32 iD, System.Int32 usluga, System.String naziv)
		{
			int count = -1;
			return GetByIDArtiklKategorijaIDUslugaNaziv(null,iDArtiklKategorija, iD, usluga, naziv, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_9_2117894912__K9_K1_K11_K2_4_Lager index.
		/// </summary>
		/// <param name="iDArtiklKategorija"></param>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <param name="naziv"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorijaIDUslugaNaziv(System.Int32 iDArtiklKategorija, System.Int32 iD, System.Int32 usluga, System.String naziv, int start, int pageLength)
		{
			int count = -1;
			return GetByIDArtiklKategorijaIDUslugaNaziv(null, iDArtiklKategorija, iD, usluga, naziv, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_9_2117894912__K9_K1_K11_K2_4_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDArtiklKategorija"></param>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <param name="naziv"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorijaIDUslugaNaziv(TransactionManager transactionManager, System.Int32 iDArtiklKategorija, System.Int32 iD, System.Int32 usluga, System.String naziv)
		{
			int count = -1;
			return GetByIDArtiklKategorijaIDUslugaNaziv(transactionManager, iDArtiklKategorija, iD, usluga, naziv, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_9_2117894912__K9_K1_K11_K2_4_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDArtiklKategorija"></param>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <param name="naziv"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorijaIDUslugaNaziv(TransactionManager transactionManager, System.Int32 iDArtiklKategorija, System.Int32 iD, System.Int32 usluga, System.String naziv, int start, int pageLength)
		{
			int count = -1;
			return GetByIDArtiklKategorijaIDUslugaNaziv(transactionManager, iDArtiklKategorija, iD, usluga, naziv, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_9_2117894912__K9_K1_K11_K2_4_Lager index.
		/// </summary>
		/// <param name="iDArtiklKategorija"></param>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <param name="naziv"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorijaIDUslugaNaziv(System.Int32 iDArtiklKategorija, System.Int32 iD, System.Int32 usluga, System.String naziv, int start, int pageLength, out int count)
		{
			return GetByIDArtiklKategorijaIDUslugaNaziv(null, iDArtiklKategorija, iD, usluga, naziv, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the _dta_index_tblArtikl_9_2117894912__K9_K1_K11_K2_4_Lager index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDArtiklKategorija"></param>
		/// <param name="iD"></param>
		/// <param name="usluga"></param>
		/// <param name="naziv"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorijaIDUslugaNaziv(TransactionManager transactionManager, System.Int32 iDArtiklKategorija, System.Int32 iD, System.Int32 usluga, System.String naziv, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_IDArtiklKategorija index.
		/// </summary>
		/// <param name="iDArtiklKategorija"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorija(System.Int32 iDArtiklKategorija)
		{
			int count = -1;
			return GetByIDArtiklKategorija(null,iDArtiklKategorija, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_IDArtiklKategorija index.
		/// </summary>
		/// <param name="iDArtiklKategorija"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorija(System.Int32 iDArtiklKategorija, int start, int pageLength)
		{
			int count = -1;
			return GetByIDArtiklKategorija(null, iDArtiklKategorija, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_IDArtiklKategorija index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDArtiklKategorija"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorija(TransactionManager transactionManager, System.Int32 iDArtiklKategorija)
		{
			int count = -1;
			return GetByIDArtiklKategorija(transactionManager, iDArtiklKategorija, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_IDArtiklKategorija index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDArtiklKategorija"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorija(TransactionManager transactionManager, System.Int32 iDArtiklKategorija, int start, int pageLength)
		{
			int count = -1;
			return GetByIDArtiklKategorija(transactionManager, iDArtiklKategorija, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_IDArtiklKategorija index.
		/// </summary>
		/// <param name="iDArtiklKategorija"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorija(System.Int32 iDArtiklKategorija, int start, int pageLength, out int count)
		{
			return GetByIDArtiklKategorija(null, iDArtiklKategorija, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_IDArtiklKategorija index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDArtiklKategorija"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklKategorija(TransactionManager transactionManager, System.Int32 iDArtiklKategorija, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key IX_tblArtikl_Naziv index.
		/// </summary>
		/// <param name="naziv"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByNaziv(System.String naziv)
		{
			int count = -1;
			return GetByNaziv(null,naziv, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblArtikl_Naziv index.
		/// </summary>
		/// <param name="naziv"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByNaziv(System.String naziv, int start, int pageLength)
		{
			int count = -1;
			return GetByNaziv(null, naziv, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblArtikl_Naziv index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="naziv"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByNaziv(TransactionManager transactionManager, System.String naziv)
		{
			int count = -1;
			return GetByNaziv(transactionManager, naziv, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblArtikl_Naziv index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="naziv"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByNaziv(TransactionManager transactionManager, System.String naziv, int start, int pageLength)
		{
			int count = -1;
			return GetByNaziv(transactionManager, naziv, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblArtikl_Naziv index.
		/// </summary>
		/// <param name="naziv"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByNaziv(System.String naziv, int start, int pageLength, out int count)
		{
			return GetByNaziv(null, naziv, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the IX_tblArtikl_Naziv index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="naziv"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByNaziv(TransactionManager transactionManager, System.String naziv, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key PK_tblArtikl index.
		/// </summary>
		/// <param name="iD"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Artikl"/> class.</returns>
		public NetROS.Tiers.Entities.Artikl GetByID(System.Int32 iD)
		{
			int count = -1;
			return GetByID(null,iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblArtikl index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Artikl"/> class.</returns>
		public NetROS.Tiers.Entities.Artikl GetByID(System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(null, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblArtikl index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Artikl"/> class.</returns>
		public NetROS.Tiers.Entities.Artikl GetByID(TransactionManager transactionManager, System.Int32 iD)
		{
			int count = -1;
			return GetByID(transactionManager, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblArtikl index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Artikl"/> class.</returns>
		public NetROS.Tiers.Entities.Artikl GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(transactionManager, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblArtikl index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Artikl"/> class.</returns>
		public NetROS.Tiers.Entities.Artikl GetByID(System.Int32 iD, int start, int pageLength, out int count)
		{
			return GetByID(null, iD, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblArtikl index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Artikl"/> class.</returns>
		public abstract NetROS.Tiers.Entities.Artikl GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key webIX_tblArtikl_IDArtiklStatus index.
		/// </summary>
		/// <param name="iDArtiklStatus"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklStatus(System.Int32 iDArtiklStatus)
		{
			int count = -1;
			return GetByIDArtiklStatus(null,iDArtiklStatus, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the webIX_tblArtikl_IDArtiklStatus index.
		/// </summary>
		/// <param name="iDArtiklStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklStatus(System.Int32 iDArtiklStatus, int start, int pageLength)
		{
			int count = -1;
			return GetByIDArtiklStatus(null, iDArtiklStatus, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the webIX_tblArtikl_IDArtiklStatus index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDArtiklStatus"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklStatus(TransactionManager transactionManager, System.Int32 iDArtiklStatus)
		{
			int count = -1;
			return GetByIDArtiklStatus(transactionManager, iDArtiklStatus, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the webIX_tblArtikl_IDArtiklStatus index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDArtiklStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklStatus(TransactionManager transactionManager, System.Int32 iDArtiklStatus, int start, int pageLength)
		{
			int count = -1;
			return GetByIDArtiklStatus(transactionManager, iDArtiklStatus, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the webIX_tblArtikl_IDArtiklStatus index.
		/// </summary>
		/// <param name="iDArtiklStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklStatus(System.Int32 iDArtiklStatus, int start, int pageLength, out int count)
		{
			return GetByIDArtiklStatus(null, iDArtiklStatus, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the webIX_tblArtikl_IDArtiklStatus index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDArtiklStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Artikl> GetByIDArtiklStatus(TransactionManager transactionManager, System.Int32 iDArtiklStatus, int start, int pageLength, out int count);
						
		#endregion "Get By Index Functions"
	
		#region Custom Methods
		
		
		#region _tblArtikl_Trazi 
		
		/// <summary>
		///	This method wrap the '_tblArtikl_Trazi' stored procedure. 
		/// </summary>
		/// <param name="IDKategorijaStora"> A <c>System.Int32?</c> instance.</param>
		/// <param name="WhereUpit"> A <c>System.String</c> instance.</param>
		/// <param name="IDSkladisteStore"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Trazi(System.Int32? @IDKategorijaStora, System.String @WhereUpit, System.Int32? @IDSkladisteStore)
		{
			return Trazi(null, 0, int.MaxValue , @IDKategorijaStora, @WhereUpit, @IDSkladisteStore);
		}
		
		/// <summary>
		///	This method wrap the '_tblArtikl_Trazi' stored procedure. 
		/// </summary>
		/// <param name="IDKategorijaStora"> A <c>System.Int32?</c> instance.</param>
		/// <param name="WhereUpit"> A <c>System.String</c> instance.</param>
		/// <param name="IDSkladisteStore"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Trazi(int start, int pageLength, System.Int32? @IDKategorijaStora, System.String @WhereUpit, System.Int32? @IDSkladisteStore)
		{
			return Trazi(null, start, pageLength , @IDKategorijaStora, @WhereUpit, @IDSkladisteStore);
		}
				
		/// <summary>
		///	This method wrap the '_tblArtikl_Trazi' stored procedure. 
		/// </summary>
		/// <param name="IDKategorijaStora"> A <c>System.Int32?</c> instance.</param>
		/// <param name="WhereUpit"> A <c>System.String</c> instance.</param>
		/// <param name="IDSkladisteStore"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader Trazi(TransactionManager transactionManager, System.Int32? @IDKategorijaStora, System.String @WhereUpit, System.Int32? @IDSkladisteStore)
		{
			return Trazi(transactionManager, 0, int.MaxValue , @IDKategorijaStora, @WhereUpit, @IDSkladisteStore);
		}
		
		/// <summary>
		///	This method wrap the '_tblArtikl_Trazi' stored procedure. 
		/// </summary>
		/// <param name="IDKategorijaStora"> A <c>System.Int32?</c> instance.</param>
		/// <param name="WhereUpit"> A <c>System.String</c> instance.</param>
		/// <param name="IDSkladisteStore"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader Trazi(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDKategorijaStora, System.String @WhereUpit, System.Int32? @IDSkladisteStore);
		
		#endregion
		
		#region _tblArtikl_GetByIDWithPicture 
		
		/// <summary>
		///	This method wrap the '_tblArtikl_GetByIDWithPicture' stored procedure. 
		/// </summary>
		/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Artikl&gt;"/> instance.</returns>
		public TList<Artikl> GetByIDWithPicture(System.Int32? @ID)
		{
			return GetByIDWithPicture(null, 0, int.MaxValue , @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblArtikl_GetByIDWithPicture' stored procedure. 
		/// </summary>
		/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Artikl&gt;"/> instance.</returns>
		public TList<Artikl> GetByIDWithPicture(int start, int pageLength, System.Int32? @ID)
		{
			return GetByIDWithPicture(null, start, pageLength , @ID);
		}
				
		/// <summary>
		///	This method wrap the '_tblArtikl_GetByIDWithPicture' stored procedure. 
		/// </summary>
		/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Artikl&gt;"/> instance.</returns>
		public TList<Artikl> GetByIDWithPicture(TransactionManager transactionManager, System.Int32? @ID)
		{
			return GetByIDWithPicture(transactionManager, 0, int.MaxValue , @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblArtikl_GetByIDWithPicture' stored procedure. 
		/// </summary>
		/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Artikl&gt;"/> instance.</returns>
		public abstract TList<Artikl> GetByIDWithPicture(TransactionManager transactionManager, int start, int pageLength , System.Int32? @ID);
		
		#endregion
		
		#region _tblArtikl_PromjenaCijeneTrazi 
		
		/// <summary>
		///	This method wrap the '_tblArtikl_PromjenaCijeneTrazi' stored procedure. 
		/// </summary>
		/// <param name="IDKategorijaStora"> A <c>System.Int32?</c> instance.</param>
		/// <param name="WhereUpit"> A <c>System.String</c> instance.</param>
		/// <param name="IDSkladisteStore"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PromjenaCijeneTrazi(System.Int32? @IDKategorijaStora, System.String @WhereUpit, System.Int32? @IDSkladisteStore)
		{
			return PromjenaCijeneTrazi(null, 0, int.MaxValue , @IDKategorijaStora, @WhereUpit, @IDSkladisteStore);
		}
		
		/// <summary>
		///	This method wrap the '_tblArtikl_PromjenaCijeneTrazi' stored procedure. 
		/// </summary>
		/// <param name="IDKategorijaStora"> A <c>System.Int32?</c> instance.</param>
		/// <param name="WhereUpit"> A <c>System.String</c> instance.</param>
		/// <param name="IDSkladisteStore"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PromjenaCijeneTrazi(int start, int pageLength, System.Int32? @IDKategorijaStora, System.String @WhereUpit, System.Int32? @IDSkladisteStore)
		{
			return PromjenaCijeneTrazi(null, start, pageLength , @IDKategorijaStora, @WhereUpit, @IDSkladisteStore);
		}
				
		/// <summary>
		///	This method wrap the '_tblArtikl_PromjenaCijeneTrazi' stored procedure. 
		/// </summary>
		/// <param name="IDKategorijaStora"> A <c>System.Int32?</c> instance.</param>
		/// <param name="WhereUpit"> A <c>System.String</c> instance.</param>
		/// <param name="IDSkladisteStore"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PromjenaCijeneTrazi(TransactionManager transactionManager, System.Int32? @IDKategorijaStora, System.String @WhereUpit, System.Int32? @IDSkladisteStore)
		{
			return PromjenaCijeneTrazi(transactionManager, 0, int.MaxValue , @IDKategorijaStora, @WhereUpit, @IDSkladisteStore);
		}
		
		/// <summary>
		///	This method wrap the '_tblArtikl_PromjenaCijeneTrazi' stored procedure. 
		/// </summary>
		/// <param name="IDKategorijaStora"> A <c>System.Int32?</c> instance.</param>
		/// <param name="WhereUpit"> A <c>System.String</c> instance.</param>
		/// <param name="IDSkladisteStore"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader PromjenaCijeneTrazi(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDKategorijaStora, System.String @WhereUpit, System.Int32? @IDSkladisteStore);
		
		#endregion
		
		#region _tblArtikl_ProsjecnaNabavnaCijena 
		
		/// <summary>
		///	This method wrap the '_tblArtikl_ProsjecnaNabavnaCijena' stored procedure. 
		/// </summary>
		/// <param name="IDOrgPar"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDArtiklPar"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumDoPar"> A <c>System.DateTime?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader ProsjecnaNabavnaCijena(System.Int32? @IDOrgPar, System.Int32? @IDArtiklPar, System.DateTime? @DatumDoPar)
		{
			return ProsjecnaNabavnaCijena(null, 0, int.MaxValue , @IDOrgPar, @IDArtiklPar, @DatumDoPar);
		}
		
		/// <summary>
		///	This method wrap the '_tblArtikl_ProsjecnaNabavnaCijena' stored procedure. 
		/// </summary>
		/// <param name="IDOrgPar"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDArtiklPar"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumDoPar"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader ProsjecnaNabavnaCijena(int start, int pageLength, System.Int32? @IDOrgPar, System.Int32? @IDArtiklPar, System.DateTime? @DatumDoPar)
		{
			return ProsjecnaNabavnaCijena(null, start, pageLength , @IDOrgPar, @IDArtiklPar, @DatumDoPar);
		}
				
		/// <summary>
		///	This method wrap the '_tblArtikl_ProsjecnaNabavnaCijena' stored procedure. 
		/// </summary>
		/// <param name="IDOrgPar"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDArtiklPar"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumDoPar"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader ProsjecnaNabavnaCijena(TransactionManager transactionManager, System.Int32? @IDOrgPar, System.Int32? @IDArtiklPar, System.DateTime? @DatumDoPar)
		{
			return ProsjecnaNabavnaCijena(transactionManager, 0, int.MaxValue , @IDOrgPar, @IDArtiklPar, @DatumDoPar);
		}
		
		/// <summary>
		///	This method wrap the '_tblArtikl_ProsjecnaNabavnaCijena' stored procedure. 
		/// </summary>
		/// <param name="IDOrgPar"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDArtiklPar"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumDoPar"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader ProsjecnaNabavnaCijena(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDOrgPar, System.Int32? @IDArtiklPar, System.DateTime? @DatumDoPar);
		
		#endregion
		
		#endregion

		#region Helper Functions	
		
		/// <summary>
		/// Fill a NetROS.Tiers.Entities.TList&lt;Artikl&gt; From a DataReader.
		/// </summary>
		/// <param name="reader">Datareader</param>
		/// <param name="rows">The collection to fill</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">number of rows.</param>
		/// <returns>a <see cref="NetROS.Tiers.Entities.TList&lt;Artikl&gt;"/></returns>
		public static NetROS.Tiers.Entities.TList<Artikl> Fill(IDataReader reader, NetROS.Tiers.Entities.TList<Artikl> rows, int start, int pageLength)
		{
		// advance to the starting row
		for (int i = 0; i < start; i++)
		{
			if (!reader.Read())
			return rows; // not enough rows, just return
		}
		for (int i = 0; i < pageLength; i++)
		{
			if (!reader.Read())
			break; // we are done
			string key = null;
			
			NetROS.Tiers.Entities.Artikl c = null;
			if (DataRepository.Provider.UseEntityFactory)
			{
			key = new System.Text.StringBuilder("Artikl")
			.Append("|").Append((reader.IsDBNull(((int)NetROS.Tiers.Entities.ArtiklColumn.ID - 1))?(int)0:(System.Int32)reader[((int)NetROS.Tiers.Entities.ArtiklColumn.ID - 1)]).ToString()).ToString();
			c = EntityManager.LocateOrCreate<Artikl>(
			key.ToString(), // EntityTrackingKey
			"Artikl",  //Creational Type
			DataRepository.Provider.EntityCreationalFactoryType,  //Factory used to create entity
			DataRepository.Provider.EnableEntityTracking); // Track this entity?
			}
			else
			{
			c = new NetROS.Tiers.Entities.Artikl();
			}
			
			if (!DataRepository.Provider.EnableEntityTracking ||
			c.EntityState == EntityState.Added ||
			(DataRepository.Provider.EnableEntityTracking &&
			((DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.PreserveChanges && c.EntityState == EntityState.Unchanged) ||
			(DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.DiscardChanges && (c.EntityState == EntityState.Unchanged ||
								c.EntityState == EntityState.Changed)))))
						{
			c.SuppressEntityEvents = true;
			c.ID = (System.Int32)reader["ID"];
			c.Naziv = (System.String)reader["Naziv"];
			c.BarCode = reader.IsDBNull(reader.GetOrdinal("BarCode")) ? null : (System.String)reader["BarCode"];
			c.Kataloskibroj = reader.IsDBNull(reader.GetOrdinal("Kataloskibroj")) ? null : (System.String)reader["Kataloskibroj"];
			c.OptimalnaKol = reader.IsDBNull(reader.GetOrdinal("OptimalnaKol")) ? null : (System.Single?)reader["OptimalnaKol"];
			c.Slika = reader.IsDBNull(reader.GetOrdinal("Slika")) ? null : (System.Byte[])reader["Slika"];
			c.IDProizvodac = reader.IsDBNull(reader.GetOrdinal("IDProizvodac")) ? null : (System.Int32?)reader["IDProizvodac"];
			c.IDJedinicnaMjera = (System.Int32)reader["IDJedinicnaMjera"];
			c.IDArtiklKategorija = (System.Int32)reader["IDArtiklKategorija"];
			c.IDPorez = (System.Int32)reader["IDPorez"];
			c.Usluga = (System.Int32)reader["Usluga"];
			c.CijenaUsluge = reader.IsDBNull(reader.GetOrdinal("CijenaUsluge")) ? null : (System.Decimal?)reader["CijenaUsluge"];
			c.IDArtiklStatus = (System.Int32)reader["IDArtiklStatus"];
			c.EntityTrackingKey = key;
			c.AcceptChanges();
			c.SuppressEntityEvents = false;
			}
			rows.Add(c);
		}
		return rows;
		}		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.Artikl"/> object from the <see cref="IDataReader"/>.
		/// </summary>
		/// <param name="reader">The <see cref="IDataReader"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Artikl"/> object to refresh.</param>
		public static void RefreshEntity(IDataReader reader, NetROS.Tiers.Entities.Artikl entity)
		{
			if (!reader.Read()) return;
			
			entity.ID = (System.Int32)reader["ID"];
			entity.Naziv = (System.String)reader["Naziv"];
			entity.BarCode = reader.IsDBNull(reader.GetOrdinal("BarCode")) ? null : (System.String)reader["BarCode"];
			entity.Kataloskibroj = reader.IsDBNull(reader.GetOrdinal("Kataloskibroj")) ? null : (System.String)reader["Kataloskibroj"];
			entity.OptimalnaKol = reader.IsDBNull(reader.GetOrdinal("OptimalnaKol")) ? null : (System.Single?)reader["OptimalnaKol"];
			entity.Slika = reader.IsDBNull(reader.GetOrdinal("Slika")) ? null : (System.Byte[])reader["Slika"];
			entity.IDProizvodac = reader.IsDBNull(reader.GetOrdinal("IDProizvodac")) ? null : (System.Int32?)reader["IDProizvodac"];
			entity.IDJedinicnaMjera = (System.Int32)reader["IDJedinicnaMjera"];
			entity.IDArtiklKategorija = (System.Int32)reader["IDArtiklKategorija"];
			entity.IDPorez = (System.Int32)reader["IDPorez"];
			entity.Usluga = (System.Int32)reader["Usluga"];
			entity.CijenaUsluge = reader.IsDBNull(reader.GetOrdinal("CijenaUsluge")) ? null : (System.Decimal?)reader["CijenaUsluge"];
			entity.IDArtiklStatus = (System.Int32)reader["IDArtiklStatus"];
			entity.AcceptChanges();
		}
		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.Artikl"/> object from the <see cref="DataSet"/>.
		/// </summary>
		/// <param name="dataSet">The <see cref="DataSet"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Artikl"/> object.</param>
		public static void RefreshEntity(DataSet dataSet, NetROS.Tiers.Entities.Artikl entity)
		{
			DataRow dataRow = dataSet.Tables[0].Rows[0];
			
			entity.ID = (System.Int32)dataRow["ID"];
			entity.Naziv = (System.String)dataRow["Naziv"];
			entity.BarCode = Convert.IsDBNull(dataRow["BarCode"]) ? null : (System.String)dataRow["BarCode"];
			entity.Kataloskibroj = Convert.IsDBNull(dataRow["Kataloskibroj"]) ? null : (System.String)dataRow["Kataloskibroj"];
			entity.OptimalnaKol = Convert.IsDBNull(dataRow["OptimalnaKol"]) ? null : (System.Single?)dataRow["OptimalnaKol"];
			entity.Slika = Convert.IsDBNull(dataRow["Slika"]) ? null : (System.Byte[])dataRow["Slika"];
			entity.IDProizvodac = Convert.IsDBNull(dataRow["IDProizvodac"]) ? null : (System.Int32?)dataRow["IDProizvodac"];
			entity.IDJedinicnaMjera = (System.Int32)dataRow["IDJedinicnaMjera"];
			entity.IDArtiklKategorija = (System.Int32)dataRow["IDArtiklKategorija"];
			entity.IDPorez = (System.Int32)dataRow["IDPorez"];
			entity.Usluga = (System.Int32)dataRow["Usluga"];
			entity.CijenaUsluge = Convert.IsDBNull(dataRow["CijenaUsluge"]) ? null : (System.Decimal?)dataRow["CijenaUsluge"];
			entity.IDArtiklStatus = (System.Int32)dataRow["IDArtiklStatus"];
			entity.AcceptChanges();
		}
		#endregion 
		
		#region DeepLoad Methods
		/// <summary>
		/// Deep Loads the <see cref="IEntity"/> object with criteria based of the child 
		/// property collections only N Levels Deep based on the <see cref="DeepLoadType"/>.
		/// </summary>
		/// <remarks>
		/// Use this method with caution as it is possible to DeepLoad with Recursion and traverse an entire object graph.
		/// </remarks>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Artikl"/> object to load.</param>
		/// <param name="deep">Boolean. A flag that indicates whether to recursively save all Property Collection that are descendants of this instance. If True, saves the complete object graph below this object. If False, saves this object only. </param>
		/// <param name="deepLoadType">DeepLoadType Enumeration to Include/Exclude object property collections from Load.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.Artikl Property Collection Type Array To Include or Exclude from Load</param>
		/// <param name="innerList">A collection of child types for easy access.</param>
	    /// <exception cref="ArgumentNullException">entity or childTypes is null.</exception>
	    /// <exception cref="ArgumentException">deepLoadType has invalid value.</exception>
		internal override void DeepLoad(TransactionManager transactionManager, NetROS.Tiers.Entities.Artikl entity, bool deep, DeepLoadType deepLoadType, System.Type[] childTypes, DeepSession innerList)
		{
			if(entity == null)
				return;

			#region IDSource	
			if (CanDeepLoad(entity, "Artikl|IDSource", deepLoadType, innerList) 
				&& entity.IDSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.ID;
				Artikl tmpEntity = EntityManager.LocateEntity<Artikl>(EntityLocator.ConstructKeyFromPkItems(typeof(Artikl), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDSource = tmpEntity;
				else
					entity.IDSource = DataRepository.ArtiklProvider.GetByID(transactionManager, entity.ID);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.ArtiklProvider.DeepLoad(transactionManager, entity.IDSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDSource

			#region IDArtiklKategorijaSource	
			if (CanDeepLoad(entity, "ArtiklKategorija|IDArtiklKategorijaSource", deepLoadType, innerList) 
				&& entity.IDArtiklKategorijaSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDArtiklKategorija;
				ArtiklKategorija tmpEntity = EntityManager.LocateEntity<ArtiklKategorija>(EntityLocator.ConstructKeyFromPkItems(typeof(ArtiklKategorija), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDArtiklKategorijaSource = tmpEntity;
				else
					entity.IDArtiklKategorijaSource = DataRepository.ArtiklKategorijaProvider.GetByID(transactionManager, entity.IDArtiklKategorija);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDArtiklKategorijaSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDArtiklKategorijaSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.ArtiklKategorijaProvider.DeepLoad(transactionManager, entity.IDArtiklKategorijaSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDArtiklKategorijaSource

			#region IDJedinicnaMjeraSource	
			if (CanDeepLoad(entity, "ArtiklMjera|IDJedinicnaMjeraSource", deepLoadType, innerList) 
				&& entity.IDJedinicnaMjeraSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDJedinicnaMjera;
				ArtiklMjera tmpEntity = EntityManager.LocateEntity<ArtiklMjera>(EntityLocator.ConstructKeyFromPkItems(typeof(ArtiklMjera), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDJedinicnaMjeraSource = tmpEntity;
				else
					entity.IDJedinicnaMjeraSource = DataRepository.ArtiklMjeraProvider.GetByID(transactionManager, entity.IDJedinicnaMjera);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDJedinicnaMjeraSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDJedinicnaMjeraSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.ArtiklMjeraProvider.DeepLoad(transactionManager, entity.IDJedinicnaMjeraSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDJedinicnaMjeraSource

			#region IDArtiklStatusSource	
			if (CanDeepLoad(entity, "ArtiklStatus|IDArtiklStatusSource", deepLoadType, innerList) 
				&& entity.IDArtiklStatusSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDArtiklStatus;
				ArtiklStatus tmpEntity = EntityManager.LocateEntity<ArtiklStatus>(EntityLocator.ConstructKeyFromPkItems(typeof(ArtiklStatus), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDArtiklStatusSource = tmpEntity;
				else
					entity.IDArtiklStatusSource = DataRepository.ArtiklStatusProvider.GetByID(transactionManager, entity.IDArtiklStatus);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDArtiklStatusSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDArtiklStatusSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.ArtiklStatusProvider.DeepLoad(transactionManager, entity.IDArtiklStatusSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDArtiklStatusSource

			#region IDProizvodacSource	
			if (CanDeepLoad(entity, "Klijent|IDProizvodacSource", deepLoadType, innerList) 
				&& entity.IDProizvodacSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDProizvodac ?? (int)0);
				Klijent tmpEntity = EntityManager.LocateEntity<Klijent>(EntityLocator.ConstructKeyFromPkItems(typeof(Klijent), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDProizvodacSource = tmpEntity;
				else
					entity.IDProizvodacSource = DataRepository.KlijentProvider.GetByID(transactionManager, (entity.IDProizvodac ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDProizvodacSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDProizvodacSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.KlijentProvider.DeepLoad(transactionManager, entity.IDProizvodacSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDProizvodacSource

			#region IDPorezSource	
			if (CanDeepLoad(entity, "Porez|IDPorezSource", deepLoadType, innerList) 
				&& entity.IDPorezSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDPorez;
				Porez tmpEntity = EntityManager.LocateEntity<Porez>(EntityLocator.ConstructKeyFromPkItems(typeof(Porez), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDPorezSource = tmpEntity;
				else
					entity.IDPorezSource = DataRepository.PorezProvider.GetByID(transactionManager, entity.IDPorez);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDPorezSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDPorezSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.PorezProvider.DeepLoad(transactionManager, entity.IDPorezSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDPorezSource
			
			//used to hold DeepLoad method delegates and fire after all the local children have been loaded.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			// Deep load child collections  - Call GetByID methods when available
			
			#region DokumentStavkaCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<DokumentStavka>|DokumentStavkaCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'DokumentStavkaCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.DokumentStavkaCollection = DataRepository.DokumentStavkaProvider.GetByIDArtikl(transactionManager, entity.ID);

				if (deep && entity.DokumentStavkaCollection.Count > 0)
				{
					deepHandles.Add("DokumentStavkaCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<DokumentStavka>) DataRepository.DokumentStavkaProvider.DeepLoad,
						new object[] { transactionManager, entity.DokumentStavkaCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region Artikl
			// RelationshipType.OneToOne
			if (CanDeepLoad(entity, "Artikl|Artikl", deepLoadType, innerList))
			{
				entity.Artikl = DataRepository.ArtiklProvider.GetByID(transactionManager, entity.ID);
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'Artikl' loaded. key " + entity.EntityTrackingKey);
				#endif 

				if (deep && entity.Artikl != null)
				{
					deepHandles.Add("Artikl",
						new KeyValuePair<Delegate, object>((DeepLoadSingleHandle< Artikl >) DataRepository.ArtiklProvider.DeepLoad,
						new object[] { transactionManager, entity.Artikl, deep, deepLoadType, childTypes, innerList }
					));
				}
			}
			#endregion 
			
			
			
			#region ArtiklVrijednostiCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<ArtiklVrijednosti>|ArtiklVrijednostiCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'ArtiklVrijednostiCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.ArtiklVrijednostiCollection = DataRepository.ArtiklVrijednostiProvider.GetByIDArtikl(transactionManager, entity.ID);

				if (deep && entity.ArtiklVrijednostiCollection.Count > 0)
				{
					deepHandles.Add("ArtiklVrijednostiCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<ArtiklVrijednosti>) DataRepository.ArtiklVrijednostiProvider.DeepLoad,
						new object[] { transactionManager, entity.ArtiklVrijednostiCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			//Fire all DeepLoad Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			deepHandles = null;
		}
		
		#endregion 
		
		#region DeepSave Methods

		/// <summary>
		/// Deep Save the entire object graph of the NetROS.Tiers.Entities.Artikl object with criteria based of the child 
		/// Type property array and DeepSaveType.
		/// </summary>
		/// <param name="transactionManager">The transaction manager.</param>
		/// <param name="entity">NetROS.Tiers.Entities.Artikl instance</param>
		/// <param name="deepSaveType">DeepSaveType Enumeration to Include/Exclude object property collections from Save.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.Artikl Property Collection Type Array To Include or Exclude from Save</param>
		/// <param name="innerList">A Hashtable of child types for easy access.</param>
		internal override bool DeepSave(TransactionManager transactionManager, NetROS.Tiers.Entities.Artikl entity, DeepSaveType deepSaveType, System.Type[] childTypes, DeepSession innerList)
		{	
			if (entity == null)
				return false;
							
			#region Composite Parent Properties
			//Save Source Composite Properties, however, don't call deep save on them.  
			//So they only get saved a single level deep.
			
			#region IDSource
			if (CanDeepSave(entity, "Artikl|IDSource", deepSaveType, innerList) 
				&& entity.IDSource != null)
			{
				DataRepository.ArtiklProvider.Save(transactionManager, entity.IDSource);
				entity.ID = entity.IDSource.ID;
			}
			#endregion 
			
			#region IDArtiklKategorijaSource
			if (CanDeepSave(entity, "ArtiklKategorija|IDArtiklKategorijaSource", deepSaveType, innerList) 
				&& entity.IDArtiklKategorijaSource != null)
			{
				DataRepository.ArtiklKategorijaProvider.Save(transactionManager, entity.IDArtiklKategorijaSource);
				entity.IDArtiklKategorija = entity.IDArtiklKategorijaSource.ID;
			}
			#endregion 
			
			#region IDJedinicnaMjeraSource
			if (CanDeepSave(entity, "ArtiklMjera|IDJedinicnaMjeraSource", deepSaveType, innerList) 
				&& entity.IDJedinicnaMjeraSource != null)
			{
				DataRepository.ArtiklMjeraProvider.Save(transactionManager, entity.IDJedinicnaMjeraSource);
				entity.IDJedinicnaMjera = entity.IDJedinicnaMjeraSource.ID;
			}
			#endregion 
			
			#region IDArtiklStatusSource
			if (CanDeepSave(entity, "ArtiklStatus|IDArtiklStatusSource", deepSaveType, innerList) 
				&& entity.IDArtiklStatusSource != null)
			{
				DataRepository.ArtiklStatusProvider.Save(transactionManager, entity.IDArtiklStatusSource);
				entity.IDArtiklStatus = entity.IDArtiklStatusSource.ID;
			}
			#endregion 
			
			#region IDProizvodacSource
			if (CanDeepSave(entity, "Klijent|IDProizvodacSource", deepSaveType, innerList) 
				&& entity.IDProizvodacSource != null)
			{
				DataRepository.KlijentProvider.Save(transactionManager, entity.IDProizvodacSource);
				entity.IDProizvodac = entity.IDProizvodacSource.ID;
			}
			#endregion 
			
			#region IDPorezSource
			if (CanDeepSave(entity, "Porez|IDPorezSource", deepSaveType, innerList) 
				&& entity.IDPorezSource != null)
			{
				DataRepository.PorezProvider.Save(transactionManager, entity.IDPorezSource);
				entity.IDPorez = entity.IDPorezSource.ID;
			}
			#endregion 
			#endregion Composite Parent Properties

			// Save Root Entity through Provider
			if (!entity.IsDeleted)
				this.Save(transactionManager, entity);
			
			//used to hold DeepSave method delegates and fire after all the local children have been saved.
			Dictionary<Delegate, object> deepHandles = new Dictionary<Delegate, object>();

			#region Artikl
			if (CanDeepSave(entity.Artikl, "Artikl|Artikl", deepSaveType, innerList))
			{

				if (entity.Artikl != null)
				{
					// update each child parent id with the real parent id (mostly used on insert)

					entity.Artikl.ID = entity.ID;
					DataRepository.ArtiklProvider.Save(transactionManager, entity.Artikl);
					deepHandles.Add(
						(DeepSaveSingleHandle< Artikl >) DataRepository.ArtiklProvider.DeepSave,
						new object[] { transactionManager, entity.Artikl, deepSaveType, childTypes, innerList }
					);
				}
			} 
			#endregion 
	
			#region List<DokumentStavka>
				if (CanDeepSave(entity.DokumentStavkaCollection, "List<DokumentStavka>|DokumentStavkaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(DokumentStavka child in entity.DokumentStavkaCollection)
					{
						if(child.IDArtiklSource != null)
							child.IDArtikl = child.IDArtiklSource.ID;
						else
							child.IDArtikl = entity.ID;

					}

					if (entity.DokumentStavkaCollection.Count > 0 || entity.DokumentStavkaCollection.DeletedItems.Count > 0)
					{
						DataRepository.DokumentStavkaProvider.Save(transactionManager, entity.DokumentStavkaCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< DokumentStavka >) DataRepository.DokumentStavkaProvider.DeepSave,
							new object[] { transactionManager, entity.DokumentStavkaCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<ArtiklVrijednosti>
				if (CanDeepSave(entity.ArtiklVrijednostiCollection, "List<ArtiklVrijednosti>|ArtiklVrijednostiCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(ArtiklVrijednosti child in entity.ArtiklVrijednostiCollection)
					{
						if(child.IDArtiklSource != null)
							child.IDArtikl = child.IDArtiklSource.ID;
						else
							child.IDArtikl = entity.ID;

					}

					if (entity.ArtiklVrijednostiCollection.Count > 0 || entity.ArtiklVrijednostiCollection.DeletedItems.Count > 0)
					{
						DataRepository.ArtiklVrijednostiProvider.Save(transactionManager, entity.ArtiklVrijednostiCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< ArtiklVrijednosti >) DataRepository.ArtiklVrijednostiProvider.DeepSave,
							new object[] { transactionManager, entity.ArtiklVrijednostiCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
			//Fire all DeepSave Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			
			// Save Root Entity through Provider, if not already saved in delete mode
			if (entity.IsDeleted)
				this.Save(transactionManager, entity);
				

			deepHandles = null;
						
			return true;
		}
		#endregion
	} // end class
	
	#region ArtiklChildEntityTypes
	
	///<summary>
	/// Enumeration used to expose the different child entity types 
	/// for child properties in <c>NetROS.Tiers.Entities.Artikl</c>
	///</summary>
	public enum ArtiklChildEntityTypes
	{
		
		///<summary>
		/// Composite Property for <c>Artikl</c> at IDSource
		///</summary>
		[ChildEntityType(typeof(Artikl))]
		Artikl,
			
		///<summary>
		/// Composite Property for <c>ArtiklKategorija</c> at IDArtiklKategorijaSource
		///</summary>
		[ChildEntityType(typeof(ArtiklKategorija))]
		ArtiklKategorija,
			
		///<summary>
		/// Composite Property for <c>ArtiklMjera</c> at IDJedinicnaMjeraSource
		///</summary>
		[ChildEntityType(typeof(ArtiklMjera))]
		ArtiklMjera,
			
		///<summary>
		/// Composite Property for <c>ArtiklStatus</c> at IDArtiklStatusSource
		///</summary>
		[ChildEntityType(typeof(ArtiklStatus))]
		ArtiklStatus,
			
		///<summary>
		/// Composite Property for <c>Klijent</c> at IDProizvodacSource
		///</summary>
		[ChildEntityType(typeof(Klijent))]
		Klijent,
			
		///<summary>
		/// Composite Property for <c>Porez</c> at IDPorezSource
		///</summary>
		[ChildEntityType(typeof(Porez))]
		Porez,
	
		///<summary>
		/// Collection of <c>Artikl</c> as OneToMany for DokumentStavkaCollection
		///</summary>
		[ChildEntityType(typeof(TList<DokumentStavka>))]
		DokumentStavkaCollection,

		///<summary>
		/// Collection of <c>Artikl</c> as OneToMany for ArtiklVrijednostiCollection
		///</summary>
		[ChildEntityType(typeof(TList<ArtiklVrijednosti>))]
		ArtiklVrijednostiCollection,
	}
	
	#endregion ArtiklChildEntityTypes
	
	#region ArtiklFilterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="SqlFilterBuilder&lt;ArtiklColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Artikl"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class ArtiklFilterBuilder : SqlFilterBuilder<ArtiklColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the ArtiklFilterBuilder class.
		/// </summary>
		public ArtiklFilterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the ArtiklFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public ArtiklFilterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the ArtiklFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public ArtiklFilterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion ArtiklFilterBuilder
	
	#region ArtiklParameterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="ParameterizedSqlFilterBuilder&lt;ArtiklColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Artikl"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class ArtiklParameterBuilder : ParameterizedSqlFilterBuilder<ArtiklColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the ArtiklParameterBuilder class.
		/// </summary>
		public ArtiklParameterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the ArtiklParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public ArtiklParameterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the ArtiklParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public ArtiklParameterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion ArtiklParameterBuilder
} // end namespace
